package com.wind.data.square;

import com.wind.base.request.BaseRequest;
import com.wind.base.response.BaseResponse;
import com.wind.base.response.PageResponse;
import com.wind.data.square.bean.Goods;
import com.wind.data.square.bean.Seller;
import com.wind.data.square.bean.SquareItem;

import java.util.List;

public class SellerGoodsListResponse extends PageResponse<SquareItem> {

    private Seller data;

    public Seller getData() {
        return data;
    }

    public void setData(Seller data) {
        this.data = data;
    }

    @Override
    public List<SquareItem> getItems() {
        for (SquareItem item:data.getGoodsList()){
            item.setAvatar(data.getAvatar());
            item.setUserName(data.getUserName());
        }
        return data.getGoodsList();
    }
}
